To run reliable services, you must have reliable
release processes. When you have many engineers building components
of an application, it's crucial that they are
able to run unit tests, integration tests, and
other tests quickly. With most user-facing software, teams usually want
to release software often with new features
and bug fixes. To enable high release
velocity, build, test and release processes must be automated as
much as possible. In the module deploying
applications, you'll learn the components of a continuous integration
and delivery pipeline. You'll also learn how to build container images for
your application by using Cloud Build and push the images to
Container Registry. Continuous integration, is a developer workflow in which developers frequently pull from the main branch and commit their changes into
a feature branch in a source code repository such as Cloud Source
Repositories or GitHub. These commit triggers
are built in a build system such as
Jenkins or CircleCI. The build process creates a new application image by using Cloud Build and stores it in an artifact repository such
as Container Registry. A deployment system
such as Spinnaker deploys the artifacts in
your Cloud environment. You can use Terraform, to stand up resources for the managed services that
your application needs. For example, you can
use Terraform to create Cloud Storage
buckets and Pub-Sub topics. After your application is deployed in your
development environment, you can automatically run
tests to verify your code. If all the tests pass, you can push changes from the feature branch
to the main branch. Continuous delivery is a
workflow that is triggered when changes are pushed to the main branch in
the repository. The build system builds the code and creates
application images. The deployment system deploys
the application images to the staging environment
and runs integration tests, performance tests, and more. If all tests pass, the build is tagged as a
release candidate build. You can manually approve a
release candidate build. This approval can
trigger a deployment to production environments as a canary or blue-green release. You can monitor the performance
of your application in the production
environment by using monitoring services such
as Cloud Monitoring. If the new deployment
functions optimally, you can switch over
your entire traffic to this new release, but if you discover
problems you can also quickly roll back to
the last stable release. The continuous deployment
workflow varies slightly in that there is
no manual approval process. The deployment
system automatically deploys release candidates to
the production environment. In the rest of
this presentation, you'll consider two key aspects of your cloud-native
application; the container image for
your application and the Google Cloud resources
required by your application. Let's do a quick
refresher on containers. Container-based virtualization is an alternative to hardware virtualization as used in
traditional virtual machines. Virtual machines are isolated
from one another in part by having each virtual machine have its own instance of
the operating system, but operating systems
can be slow to boot and can be resource-heavy. Containers respond
to these problems by using modern
operating systems, built-in capabilities to isolate environments from one another. A process is a running program. In Linux and Windows, the memory address spaces of running processes have long been isolated from one another. Popular implementations
of software containers, build on this isolation. They take advantage of additional operating
system features, that give processes
the capability to have their own namespaces
and that give a supervisor process
the ability to limit other processes,
access to resources. Containers start much faster than virtual machines and use fewer resources
because each container does not have its own instance
of the operating system. Instead, developers
configure each container with a minimal set of software
libraries to do the job. A lightweight
container runtime does the plumbing jobs
needed to allow that container to
launch and run. Calling into the
kernel is necessary. The container runtime also
determines the image format. Google Kubernetes Engine uses the Docker container runtime, and Docker containers are what we'll focus on in this course.